package br.biofoco.p2p.rpc.tcp;

import br.biofoco.p2p.rpc.messaging.MessageCode;
import br.biofoco.p2p.rpc.messaging.CommandHandler;
import br.biofoco.p2p.rpc.messaging.WireRequestMessage;
import br.biofoco.p2p.rpc.messaging.WireResponseMessage;

public final class DefaultProtocolHandler implements CommandHandler {

	@Override
	public WireResponseMessage doProcess(WireRequestMessage request) {
		return new WireResponseMessage(request.getId(), MessageCode.ERROR, request.getMethod(), "This peer is using a default protocol handler");
	}

}
